Integrand size = 24, antiderivative size = 30 \[ \int \frac {a+a \sin (e+f x)}{(c-c \sin (e+f x))^2} \, dx=\frac {a c \cos ^3(e+f x)}{3 f (c-c \sin (e+f x))^3} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2815, 2750} \[ \int \frac {a+a \sin (e+f x)}{(c-c \sin (e+f x))^2} \, dx=\frac {a c \cos ^3(e+f x)}{3 f (c-c \sin (e+f x))^3} \]
[In]
[Out]
Rule 2750
Rule 2815
Rubi steps \begin{align*} \text {integral}& = (a c) \int \frac {\cos ^2(e+f x)}{(c-c \sin (e+f x))^3} \, dx \\ & = \frac {a c \cos ^3(e+f x)}{3 f (c-c \sin (e+f x))^3} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(74\) vs. \(2(30)=60\).
Time = 1.62 (sec) , antiderivative size = 74, normalized size of antiderivative = 2.47 \[ \int \frac {a+a \sin (e+f x)}{(c-c \sin (e+f x))^2} \, dx=-\frac {a \left (-3 \cos \left (e+\frac {f x}{2}\right )+\cos \left (e+\frac {3 f x}{2}\right )\right )}{3 c^2 f \left (\cos \left (\frac {e}{2}\right )-\sin \left (\frac {e}{2}\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^3} \]
[In]
[Out]
Time = 0.78 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.27
method | result | size |
parallelrisch | \(\frac {2 a \left (-3 \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-1\right )}{3 f \,c^{2} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{3}}\) | \(38\) |
risch | \(-\frac {2 \left (3 a \,{\mathrm e}^{2 i \left (f x +e \right )}-a \right )}{3 \left ({\mathrm e}^{i \left (f x +e \right )}-i\right )^{3} f \,c^{2}}\) | \(39\) |
derivativedivides | \(\frac {2 a \left (-\frac {4}{3 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{3}}-\frac {1}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1}-\frac {2}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{2}}\right )}{f \,c^{2}}\) | \(56\) |
default | \(\frac {2 a \left (-\frac {4}{3 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{3}}-\frac {1}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1}-\frac {2}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{2}}\right )}{f \,c^{2}}\) | \(56\) |
norman | \(\frac {-\frac {2 a}{3 c f}-\frac {8 a \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 c f}-\frac {2 a \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{c f}}{c \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right ) \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{3}}\) | \(83\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 104 vs. \(2 (29) = 58\).
Time = 0.30 (sec) , antiderivative size = 104, normalized size of antiderivative = 3.47 \[ \int \frac {a+a \sin (e+f x)}{(c-c \sin (e+f x))^2} \, dx=\frac {a \cos \left (f x + e\right )^{2} - a \cos \left (f x + e\right ) - {\left (a \cos \left (f x + e\right ) + 2 \, a\right )} \sin \left (f x + e\right ) - 2 \, a}{3 \, {\left (c^{2} f \cos \left (f x + e\right )^{2} - c^{2} f \cos \left (f x + e\right ) - 2 \, c^{2} f + {\left (c^{2} f \cos \left (f x + e\right ) + 2 \, c^{2} f\right )} \sin \left (f x + e\right )\right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 158 vs. \(2 (26) = 52\).
Time = 1.14 (sec) , antiderivative size = 158, normalized size of antiderivative = 5.27 \[ \int \frac {a+a \sin (e+f x)}{(c-c \sin (e+f x))^2} \, dx=\begin {cases} - \frac {6 a \tan ^{2}{\left (\frac {e}{2} + \frac {f x}{2} \right )}}{3 c^{2} f \tan ^{3}{\left (\frac {e}{2} + \frac {f x}{2} \right )} - 9 c^{2} f \tan ^{2}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 c^{2} f \tan {\left (\frac {e}{2} + \frac {f x}{2} \right )} - 3 c^{2} f} - \frac {2 a}{3 c^{2} f \tan ^{3}{\left (\frac {e}{2} + \frac {f x}{2} \right )} - 9 c^{2} f \tan ^{2}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 c^{2} f \tan {\left (\frac {e}{2} + \frac {f x}{2} \right )} - 3 c^{2} f} & \text {for}\: f \neq 0 \\\frac {x \left (a \sin {\left (e \right )} + a\right )}{\left (- c \sin {\left (e \right )} + c\right )^{2}} & \text {otherwise} \end {cases} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 217 vs. \(2 (29) = 58\).
Time = 0.20 (sec) , antiderivative size = 217, normalized size of antiderivative = 7.23 \[ \int \frac {a+a \sin (e+f x)}{(c-c \sin (e+f x))^2} \, dx=-\frac {2 \, {\left (\frac {a {\left (\frac {3 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {3 \, \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - 2\right )}}{c^{2} - \frac {3 \, c^{2} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {3 \, c^{2} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {c^{2} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}} - \frac {a {\left (\frac {3 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - 1\right )}}{c^{2} - \frac {3 \, c^{2} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {3 \, c^{2} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {c^{2} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}}\right )}}{3 \, f} \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.23 \[ \int \frac {a+a \sin (e+f x)}{(c-c \sin (e+f x))^2} \, dx=-\frac {2 \, {\left (3 \, a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a\right )}}{3 \, c^{2} f {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{3}} \]
[In]
[Out]
Time = 6.73 (sec) , antiderivative size = 56, normalized size of antiderivative = 1.87 \[ \int \frac {a+a \sin (e+f x)}{(c-c \sin (e+f x))^2} \, dx=-\frac {2\,a\,\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (2\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2-3\right )}{3\,c^2\,f\,{\left (\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )-\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )\right )}^3} \]
[In]
[Out]